<div class="page-title clearfix">
  <div class="title">App首页设置</div>
</div>

<div class="page-msg m-15">
  <h3>功能描述</h3>
  <ul>
    <li *ngFor="let item of msgTip.appHomeData">{{item}}</li>
  </ul>
</div>

<div class="panel panel-body">
  <form nz-form #appForm="ngForm" class="form-wrap" (submit)="modifyAppHomeDara($event)">

    <!--price start-->
    <nz-form-item>
      <nz-form-label [nzSm]="5" nzFor="num" nzRequired>首页描述（项目优势）</nz-form-label>
      <nz-form-control [nzSm]="15">
        <ckeditor name="appHomeData" [(ngModel)]="appHomeData" [readonly]="!isEdit" [config]="ckEditerConfig"></ckeditor>
      </nz-form-control>
    </nz-form-item>

    <!--表单底部start-->
    <nz-form-item class="action-button">
      <nz-form-control class="text-center">
        <button nz-button [nzType]="'default'" type="button" class="pl-30 pr-30" (click)="isEdit = true"
                *ngIf="!isEdit">
          编辑
        </button>
        <ng-container *ngIf="isEdit">
          <button nz-button [nzType]="'default'" type="button" class="pl-30 pr-30 mr" (click)="cancelEdit()">
            取消
          </button>
          <button nz-button [nzType]="'primary'" type="submit" class="pl-30 pr-30"
                  [nzLoading]="isConfirmLoading">确定
          </button>
        </ng-container>
      </nz-form-control>
    </nz-form-item>
    <!--表单底部end-->
  </form>
</div>
